import * as mongoose from 'mongoose'

class UserSchema extends mongoose.Schema
{
    constructor(){
        super({
            username:{type:String,default:'unnamed'},
            password:{type:String},
            email:{type:String},
            loginDate:{type:Date}
        })
    }
}

export{UserSchema}